<template>
  <div class="lcdp_axe_main" v-show="alreadyLoad">
    <div class="lcdp_axe jxd_ins_elBaseWebPage jxd_additional PfxtLrxx hussar_0">
      <participantDialog @close="hussar_0ParticipantDialogVisible = false" @comfirm="hussar_0ComfirmParticipant" :selectionBackup="hussar_0SelectionBackup" :tableData="hussar_0ParticipantData" :participantDialogVisible="hussar_0ParticipantDialogVisible" :taskId="hussar_0ParticipantTaskId" :processDefinitionKey="hussar_0ParticipantProcessDefinitionKey" :nodeId="hussar_0FlowData.flowSelect"></participantDialog>
      <!-- 标题 -->
      <div :disabled="h1_2Disabled" v-show="!h1_2Hidden" class="h1_2 jxd_ins_elH1 lay-h1 default">
        <div class="leftIconClass"><i class="el-icon-s-home"></i></div>
        <div>
          <span>{{ h1_2Text }}</span>
        </div>
      </div>
      <!-- 按钮 -->
      <el-button tabindex="" :disabled="button_6Disabled" ref="button_6Ref" v-show="!button_6Hidden" class="button_6 jxd_ins_elButton lay-btn button_additional default" @click="button_6Click">
        <i class=""></i>
        <span>下载模板</span>
      </el-button>
      <!-- 可编辑表格 -->
      <h-edit-table :data="form_1FormData.hdPersonArr" :active-method="editTable_25ActiveRowMethod" :props="editTable_25PropsData" :cell-style="editTable_25CellStyle" :innerStyles="editTable_25InnerStylesData" :table-loading="editTable_25TableLoading" :table-show-fields="editTable_25tableShowFields" theme-name="default" :edit-disabled="editTable_25Disabled" @radio-change="editTable_25SelectRow" @checkbox-change="editTable_25SelectRow" @checkbox-all="editTable_25SelectAll" :disabled="editTable_25Disabled" ref="editTable_25TableRef" v-show="!editTable_25Hidden" class="editTable_25 jxd_ins_hEditTable lay-editTable default"></h-edit-table>
      <!-- 按钮 -->
      <el-button tabindex="" :disabled="button_26Disabled" ref="button_26Ref" v-show="!button_26Hidden" class="button_26 jxd_ins_elButton lay-btn button_additional default" @click="button_26Click">
        <i class=""></i>
        <span>新增表格</span>
      </el-button>
      <!-- 按钮 -->
      <el-button tabindex="" :disabled="button_27Disabled" ref="button_27Ref" v-show="!button_27Hidden" class="button_27 jxd_ins_elButton lay-btn button_additional default" @click="button_27Click">
        <i class=""></i>
        <span>提交</span>
      </el-button>
      <!-- 标题 -->
      <div :disabled="h1_33Disabled" v-show="!h1_33Hidden" class="h1_33 jxd_ins_elH1 lay-h1 default">
        <div class="leftIconClass"><i class="el-icon-s-home"></i></div>
        <div>
          <span>{{ h1_33Text }}</span>
        </div>
      </div>
      <!-- 标签 -->
      <span :class="{ isFlex: !label_34Hidden }" id="PfxtLrxxlabel_34" :disabled="label_34Disabled" @mouseover="selectStyle('label_34', 'PfxtLrxxlabel_34')" v-show="!label_34Hidden" class="label_34 jxd_ins_format jxd-format-element default">
        <el-tooltip :disabled="label_34tooltip" :open-delay="500" class="item" effect="dark" :visible-arrow="false" popper-class="el-prompt el-prompt-position el-format-tooltip">
          <div slot="content" class="el-title">
            {{ label_34Data | label_34format(label_34that) }}
          </div>
          <span class="isShear">
            <span>{{ label_34Data | label_34format(label_34that) }}</span>
          </span>
        </el-tooltip>
      </span>
      <!-- 标题 -->
      <div :disabled="h1_39Disabled" v-show="!h1_39Hidden" class="h1_39 jxd_ins_elH1 lay-h1 default">
        <div class="leftIconClass"><i class="el-icon-s-home"></i></div>
        <div>
          <span>{{ h1_39Text }}</span>
        </div>
      </div>
      <!-- 下一节点 -->
      <el-select placeholder="请选择下一节点" @change="nextNode_45Change" :disabled="nextNode_45Disabled" ref="nextNode_45Ref" popper-class="element-ins-flow-select" v-show="!nextNode_45Hidden" v-model="nextNode_45Data" class="nextNode_45 jxd_ins_elFlowSelect lay-flow-select default" @focus="nextNode_45Focus">
        <el-option v-for="option in nextNode_45Options" :label="option.name" :key="option.value" :value="option.value"></el-option>
      </el-select>
      <!-- 选择参与者 -->
      <el-input readonly @focus="changehussar_0ParticipantDialogVisible" placeholder="请选择评委" :disabled="candidate_46Disabled" ref="candidate_46Ref" v-show="!candidate_46Hidden" v-model="candidate_46Data" class="candidate_46 jxd_ins_elParticipantInput lay-participant-input default"></el-input>
      <!-- 标签 -->
      <span :class="{ isFlex: !label_47Hidden }" id="PfxtLrxxlabel_47" :disabled="label_47Disabled" @mouseover="selectStyle('label_47', 'PfxtLrxxlabel_47')" v-show="!label_47Hidden" class="label_47 jxd_ins_format jxd-format-element default">
        <el-tooltip :disabled="label_47tooltip" :open-delay="500" class="item" effect="dark" :visible-arrow="false" popper-class="el-prompt el-prompt-position el-format-tooltip">
          <div slot="content" class="el-title">
            {{ label_47Data | label_47format(label_47that) }}
          </div>
          <span class="isShear">
            <span>{{ label_47Data | label_47format(label_47that) }}</span>
          </span>
        </el-tooltip>
      </span>
      <!-- 按钮 -->
      <el-button tabindex="" :disabled="button_48Disabled" ref="button_48Ref" v-show="!button_48Hidden" class="button_48 jxd_ins_elButton lay-btn button_additional default" @click="button_48Click">
        <i class=""></i>
        <span>导入</span>
      </el-button>
      <!-- 单行文本 -->
      <el-input style="display: flex" placeholder="请输入" clearable :disabled="input_49Disabled" ref="input_49Ref" :type="input_49Type" v-show="!input_49Hidden" v-model="form_1FormData.pingwei" class="input_49 jxd_ins_elInput lay-input default">&gt;</el-input>
      <!-- 标签 -->
      <span :class="{ isFlex: !label_50Hidden }" id="PfxtLrxxlabel_50" :disabled="label_50Disabled" @mouseover="selectStyle('label_50', 'PfxtLrxxlabel_50')" v-show="!label_50Hidden" class="label_50 jxd_ins_format jxd-format-element default">
        <el-tooltip :disabled="label_50tooltip" :open-delay="500" class="item" effect="dark" :visible-arrow="false" popper-class="el-prompt el-prompt-position el-format-tooltip">
          <div slot="content" class="el-title">
            {{ label_50Data | label_50format(label_50that) }}
          </div>
          <span class="isShear">
            <span>{{ label_50Data | label_50format(label_50that) }}</span>
          </span>
        </el-tooltip>
      </span>
      <!-- 按钮 -->
      <el-button tabindex="" :disabled="button_51Disabled" ref="button_51Ref" v-show="!button_51Hidden" class="button_51 jxd_ins_elButton lay-btn button_additional default" @click="button_51Click">
        <i class=""></i>
        <span>删除</span>
      </el-button>
    </div>
  </div>
</template>
<script>
import * as HussarRouter from '@/utils/HussarRouter';
import * as _ from 'lodash';
import * as flowAuth from '@/api/bpm/flowAuth';
import * as hdPersonArr1 from '#/api/pfxt/hdpersonarr1';
import * as sjmx from '#/api/pfxt/sjmx';
import participantDialog from '@/components/bpm/participantDialog/index';
import { BPMPREFIX } from '@/api/bpm/bpmPrefixCommon';
import { excelDownloadForArea } from '@/pages/index/utils/lowcode/tableRelevantUtil';
import { formatSelectStyle } from '@/pages/index/utils/lowcode/formatUtil';
import { hussarRequest } from 'hussar-base';
import { saveAs } from 'file-saver';
/* @begin definitions # 页面局部定义 */
/* @end definitions */
export default {
  name: 'PfxtLrxx',
  components: {
    /* @begin components # 自定义组件 */
    /* @end components */
    participantDialog,
  },
  props: {
    /* @begin props # 自定义 */
    /* @end props */
  },
  data() {
    return {
      alreadyLoad: false, // 页面的alreadyLoad属性
      button_6Disabled: false, // 按钮的禁用属性
      button_6Hidden: false, // 按钮的隐藏属性
      button_26Disabled: false, // 按钮的禁用属性
      button_26Hidden: false, // 按钮的隐藏属性
      button_27Disabled: false, // 按钮的禁用属性
      button_27Hidden: false, // 按钮的隐藏属性
      button_48Disabled: false, // 按钮的禁用属性
      button_48Hidden: false, // 按钮的隐藏属性
      button_51Disabled: false, // 按钮的禁用属性
      button_51Hidden: false, // 按钮的隐藏属性
      candidate_46Data: '', // 选择参与者的value变量
      candidate_46Disabled: false, // 选择参与者的禁用属性
      candidate_46Hidden: false, // 选择参与者的隐藏属性
      editTable_25CurRowData: {}, // 可编辑表格的curRowData变量
      editTable_25Disabled: false, // 可编辑表格的禁用属性
      editTable_25Hidden: false, // 可编辑表格的隐藏属性
      editTable_25InnerStylesData: { scrollbar: '16px', borderLineIndex: '0', selectLineHight: 'normal', maxInputHeight: 'none', pageVertical: 'middle', inputMaxWidth: '90px', placeholder: '#909399', loading: 'fixed', tHeadBorderLine: '0px', tBodyLastBorderColor: 'none', divWidth: 'auto' },
      editTable_25ListQuery: {
        current: 1,
        size: 10,
      }, // 可编辑表格的pagination变量
      editTable_25OptCols: [
        { field: 'perId', colEditComponent: 'input' },
        { field: 'perName', colEditComponent: 'input' },
        { field: 'age', colEditComponent: 'input' },
        { field: 'sex', colEditComponent: 'input' },
        { field: 'entries', colEditComponent: 'input' },
        { field: 'perScore', colEditComponent: 'input' },
      ],
      editTable_25PropsData: {
        mockField: [
          { prop: 'test1', label: '' },
          { prop: 'test2', label: '' },
          { prop: 'test3', label: '' },
          { prop: 'test4', label: '' },
          { prop: 'test5', label: '' },
          { prop: 'test6', label: '' },
        ],
        isPagination: false,
        editable: false,
        getTBodyBorderColor: 'rgba(237, 237, 237, 1)',
        rowSummary: false,
        opt_cols: [
          { isLink: false, tableField: '', eventList: { isNeedAction: false, eventName: 'optsActionCol1', label: '动作列1' }, headAlignIsEdit: false, bodyAlign: 'center', dataType: 'long', isManual: true, colWidth: { number: 0, selfCustom: false }, sort: false, title: '参赛序号', align: 'center', bodyAlignIsEdit: false, isDisplay: false, isShow: true, mergeCol: false, columnFontFamily: '-apple-system, "Noto Sans", "Helvetica Neue", Helvetica, "Nimbus Sans L", Arial, "Liberation Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Source Han Sans CN", "Microsoft YaHei","微软雅黑", "Wenquanyi Micro Hei", "WenQuanYi Zen Hei", "ST Heiti", SimHei, "WenQuanYi Zen Hei Sharp", sans-serif', headerAlign: 'center', isFirstCreate: true, changedField: 'title', fixed: { left: false, right: false, isFixed: false }, id: '3de958c1-cefb-11ee-a9c5-b5d568ce7de3', colEditComponent: 'input' },
          { isLink: false, tableField: '', eventList: { isNeedAction: false, eventName: 'optsActionCol6', label: '动作列6' }, headAlignIsEdit: false, bodyAlign: 'center', dataType: 'string', isManual: true, colWidth: { number: 0, selfCustom: false }, sort: false, title: '参赛姓名', align: 'center', bodyAlignIsEdit: false, isDisplay: false, isShow: true, mergeCol: false, columnFontFamily: '-apple-system, "Noto Sans", "Helvetica Neue", Helvetica, "Nimbus Sans L", Arial, "Liberation Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Source Han Sans CN", "Microsoft YaHei","微软雅黑", "Wenquanyi Micro Hei", "WenQuanYi Zen Hei", "ST Heiti", SimHei, "WenQuanYi Zen Hei Sharp", sans-serif', headerAlign: 'center', isFirstCreate: true, changedField: 'title', fixed: { left: false, right: false, isFixed: false }, id: '195140c0-d605-11ee-8323-cd77e1dbfb24', colEditComponent: 'input' },
          { isLink: false, tableField: '', eventList: { isNeedAction: false, eventName: 'optsActionCol3', label: '动作列3' }, headAlignIsEdit: false, bodyAlign: 'center', dataType: 'string', isManual: true, colWidth: { number: 0, selfCustom: false }, sort: false, title: '年龄', align: 'center', bodyAlignIsEdit: false, isDisplay: false, isShow: true, mergeCol: false, columnFontFamily: '-apple-system, "Noto Sans", "Helvetica Neue", Helvetica, "Nimbus Sans L", Arial, "Liberation Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Source Han Sans CN", "Microsoft YaHei","微软雅黑", "Wenquanyi Micro Hei", "WenQuanYi Zen Hei", "ST Heiti", SimHei, "WenQuanYi Zen Hei Sharp", sans-serif', headerAlign: 'center', isFirstCreate: true, changedField: 'title', fixed: { left: false, right: false, isFixed: false }, id: '6a5f55d1-cefb-11ee-a9c5-b5d568ce7de3', colEditComponent: 'input' },
          {
            isLink: false,
            tableField: '',
            eventList: { isNeedAction: false, eventName: 'optsActionCol4', label: '动作列4' },
            headAlignIsEdit: false,
            bodyAlign: 'center',
            dataType: 'string',
            isManual: true,
            colWidth: { number: 0, selfCustom: false },
            sort: false,
            title: '性别',
            align: 'center',
            bodyAlignIsEdit: false,
            isDisplay: true,
            isShow: true,
            mergeCol: false,
            columnFontFamily: '-apple-system, "Noto Sans", "Helvetica Neue", Helvetica, "Nimbus Sans L", Arial, "Liberation Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Source Han Sans CN", "Microsoft YaHei","微软雅黑", "Wenquanyi Micro Hei", "WenQuanYi Zen Hei", "ST Heiti", SimHei, "WenQuanYi Zen Hei Sharp", sans-serif',
            headerAlign: 'center',
            isFirstCreate: true,
            changedField: 'colEditComponent',
            fixed: { left: false, right: false, isFixed: false },
            id: '73ec1931-cefb-11ee-a9c5-b5d568ce7de3',
            colEditComponent: 'input',
            selectFormat: {
              color: '#2695f9',
              showButtonColor: false,
              showOptions: false,
              showNumberFmt: false,
              dialogSelectDom: '',
              showDateFmt: false,
              showDialogSelectDom: false,
              numberFmtSelect: '',
              dateFmtSelect: '',
              cols: [
                { name: '男', value: 1 },
                { name: '女', value: 2 },
              ],
              showTableDateFmt: false,
            },
          },
          {
            isLink: false,
            tableField: '',
            eventList: { isNeedAction: false, eventName: 'optsActionCol5', label: '动作列5' },
            headAlignIsEdit: false,
            bodyAlign: 'center',
            dataType: 'string',
            isManual: true,
            colWidth: { number: 0, selfCustom: false },
            sort: false,
            title: '参赛项目',
            align: 'center',
            bodyAlignIsEdit: false,
            isDisplay: true,
            isShow: true,
            mergeCol: false,
            columnFontFamily: '-apple-system, "Noto Sans", "Helvetica Neue", Helvetica, "Nimbus Sans L", Arial, "Liberation Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Source Han Sans CN", "Microsoft YaHei","微软雅黑", "Wenquanyi Micro Hei", "WenQuanYi Zen Hei", "ST Heiti", SimHei, "WenQuanYi Zen Hei Sharp", sans-serif',
            headerAlign: 'center',
            isFirstCreate: true,
            changedField: 'colEditComponent',
            fixed: { left: false, right: false, isFixed: false },
            id: '8ccdba31-cefb-11ee-a9c5-b5d568ce7de3',
            colEditComponent: 'input',
            selectFormat: {
              color: '#2695f9',
              showButtonColor: false,
              showOptions: false,
              showNumberFmt: false,
              dialogSelectDom: '',
              showDateFmt: false,
              showDialogSelectDom: false,
              numberFmtSelect: '',
              dateFmtSelect: '',
              cols: [
                { name: '唱歌', value: 1 },
                { name: '跳舞', value: 2 },
              ],
              showTableDateFmt: false,
            },
          },
          { isLink: false, tableField: '', eventList: { isNeedAction: false, eventName: 'optsActionCol7', label: '动作列7' }, headAlignIsEdit: false, bodyAlign: 'center', dataType: 'string', isManual: true, colWidth: { number: 0, selfCustom: false }, sort: false, title: '得分', align: 'center', bodyAlignIsEdit: false, isDisplay: false, isShow: true, mergeCol: false, columnFontFamily: '-apple-system, "Noto Sans", "Helvetica Neue", Helvetica, "Nimbus Sans L", Arial, "Liberation Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Source Han Sans CN", "Microsoft YaHei","微软雅黑", "Wenquanyi Micro Hei", "WenQuanYi Zen Hei", "ST Heiti", SimHei, "WenQuanYi Zen Hei Sharp", sans-serif', headerAlign: 'center', isFirstCreate: true, changedField: 'title', fixed: { left: false, right: false, isFixed: false }, id: 'a04f9c50-d625-11ee-8a23-fd0c7d50f863', colEditComponent: 'input' },
        ],
        pageSize: 10,
        tableHeight: '100%',
        isBorder: false,
        reference: [{ componentQuote: { isGetLength: false, mapping: [], configData: '', dataType: 'string', calData: [], formula: '', implementFunction: [], type: 'instance', instanceKey: 'form_1', instanceData: ['data', '91b3d750-c4d3-11ee-8047-2116c21546b0'] }, name: '', specialQuote: { isGetLength: false, mapping: [], configData: '', dataType: 'string', calData: [], formula: '', implementFunction: [], type: '', instanceKey: '', instanceData: [] }, currentData: ['value'] }],
        columnSummary: false,
        isSortOverall: false,
        stripe: true,
        disabled: false,
        exegesis: '',
        isShadow: false,
        currentPage: 1,
        headerIcon: true,
      },
      editTable_25TableDataChecked: [], // 可编辑表格的data变量
      editTable_25TableLoading: false,
      editTable_25tableShowFields: [
        { isParent: false, bodyAlign: 'center', dataType: 'long', rowSummary: false, colWidth: { number: '0', isMinWidth: false, selfCustom: false }, isMinWidth: false, isShowConfig: false, label: '参赛序号', sort: false, align: 'center', title: '参赛序号', prop: 'perId', colEditComponent: 'input', id: '3de958c1-cefb-11ee-a9c5-b5d568ce7de3' },
        { isParent: false, bodyAlign: 'center', dataType: 'string', rowSummary: false, colWidth: { number: '0', isMinWidth: false, selfCustom: false }, isMinWidth: false, isShowConfig: false, label: '参赛姓名', sort: false, align: 'center', title: '参赛姓名', prop: 'perName', colEditComponent: 'input', id: '195140c0-d605-11ee-8323-cd77e1dbfb24' },
        { isParent: false, bodyAlign: 'center', dataType: 'string', rowSummary: false, colWidth: { number: '0', isMinWidth: false, selfCustom: false }, isMinWidth: false, isShowConfig: false, label: '年龄', sort: false, align: 'center', title: '年龄', prop: 'age', colEditComponent: 'input', id: '6a5f55d1-cefb-11ee-a9c5-b5d568ce7de3' },
        {
          isParent: false,
          bodyAlign: 'center',
          dataType: 'string',
          rowSummary: false,
          colWidth: { number: '0', isMinWidth: false, selfCustom: false },
          isMinWidth: false,
          isShowConfig: false,
          label: '性别',
          sort: false,
          align: 'center',
          title: '性别',
          prop: 'sex',
          colEditComponent: 'input',
          id: '73ec1931-cefb-11ee-a9c5-b5d568ce7de3',
          selectFormat: {
            color: '#2695f9',
            showButtonColor: false,
            showOptions: false,
            showNumberFmt: false,
            dialogSelectDom: '',
            showDateFmt: false,
            showDialogSelectDom: false,
            numberFmtSelect: '',
            dateFmtSelect: '',
            cols: [
              { name: '男', value: 1 },
              { name: '女', value: 2 },
            ],
            showTableDateFmt: false,
          },
        },
        {
          isParent: false,
          bodyAlign: 'center',
          dataType: 'string',
          rowSummary: false,
          colWidth: { number: '0', isMinWidth: false, selfCustom: false },
          isMinWidth: false,
          isShowConfig: false,
          label: '参赛项目',
          sort: false,
          align: 'center',
          title: '参赛项目',
          prop: 'entries',
          colEditComponent: 'input',
          id: '8ccdba31-cefb-11ee-a9c5-b5d568ce7de3',
          selectFormat: {
            color: '#2695f9',
            showButtonColor: false,
            showOptions: false,
            showNumberFmt: false,
            dialogSelectDom: '',
            showDateFmt: false,
            showDialogSelectDom: false,
            numberFmtSelect: '',
            dateFmtSelect: '',
            cols: [
              { name: '唱歌', value: 1 },
              { name: '跳舞', value: 2 },
            ],
            showTableDateFmt: false,
          },
        },
        { isParent: false, bodyAlign: 'center', dataType: 'string', rowSummary: false, colWidth: { number: '0', isMinWidth: false, selfCustom: false }, isMinWidth: false, isShowConfig: false, label: '得分', sort: false, align: 'center', title: '得分', prop: 'perScore', colEditComponent: 'input', id: 'a04f9c50-d625-11ee-8a23-fd0c7d50f863' },
      ],
      form_1FormCheck: {
        hdPersonArr: true,
        createTime: true,
        pingwei: true,
        name: true,
        score: true,
        perId: true,
        perScore: true,
        perName: true,
        entries: true,
        sex: true,
        age: true,
      }, // 表单验证属性
      form_1FormData: {
        hdPersonArr: [],
        createTime: '',
        pingwei: '',
        name: '',
        score: '',
        perId: '',
        perScore: '',
        perName: '',
        entries: '',
        sex: '',
        age: '',
      }, // 数据模型的data变量
      form_1FormDataOLD: {}, // 表单的验证所需变量
      h1_2Disabled: false, // 标题的禁用属性
      h1_2Hidden: false, // 标题的隐藏属性
      h1_2Text: '录入信息',
      h1_33Disabled: false, // 标题的禁用属性
      h1_33Hidden: false, // 标题的隐藏属性
      h1_33Text: '分配评委',
      h1_39Disabled: false, // 标题的禁用属性
      h1_39Hidden: false, // 标题的隐藏属性
      h1_39Text: '评委打分',
      hussar_0FlowData: {},
      hussar_0ParticipantData: [],
      hussar_0ParticipantDialogVisible: false,
      hussar_0SelectionBackup: [],
      input_49Disabled: false, // 单行文本的禁用属性
      input_49Hidden: false, // 单行文本的隐藏属性
      input_49Type: 'text', // 单行文本的type属性
      isFirstCreate: true, // 页面的isFirstCreate属性
      label_34Data: '下一节点：', // 标签的value变量
      label_34Disabled: false, // 标签的禁用属性
      label_34Hidden: false, // 标签的隐藏属性
      label_34that: this,
      label_34tooltip: false,
      label_47Data: '选择：', // 标签的value变量
      label_47Disabled: false, // 标签的禁用属性
      label_47Hidden: false, // 标签的隐藏属性
      label_47that: this,
      label_47tooltip: false,
      label_50Data: '评委：', // 标签的value变量
      label_50Disabled: false, // 标签的禁用属性
      label_50Hidden: false, // 标签的隐藏属性
      label_50that: this,
      label_50tooltip: false,
      nextNode_45Data: '', // 下一节点的value变量
      nextNode_45Disabled: false, // 下一节点的禁用属性
      nextNode_45Hidden: false, // 下一节点的隐藏属性
      nextNode_45Options: [],
      /* @begin data # 自定义数据属性 */
      /* @end data */
    };
  },
  computed: {
    /**
     * 选择参与者的取值
     */
    hussar_0ParticipantProcessDefinitionKey() {
      const self = this;
      return HussarRouter.query(self, 'processDefinitionKey');
    },
    /**
     * 选择参与者的取值
     */
    hussar_0ParticipantTaskId() {
      const self = this;
      return HussarRouter.query(self, 'taskId');
    },
    /* @begin computed # 自定义计算属性 */
    /* @end computed */
  },
  watch: {
    /* @begin watch # 自定义侦听器 */
    /* @end watch */
  },
  methods: {
    /**
     * 按钮的点击事件
     */
    button_6Click() {
      const self = this;
      // 导入模板下载
      const tableData = ['参赛序号', '参赛姓名', '年龄', '性别', '参赛项目', '得分'];
      const tableField = ['perId', 'perName', 'age', 'sex', 'entries', 'perScore'];
      const columns = [];
      for (let i = 0; i < tableData.length; i++) {
        const excelCol = {};
        // excelCol.header = tableData[0][i];
        excelCol.key = tableField[i];
        excelCol.width = 30;
        columns.push(excelCol);
      }
      const Excel = require('exceljs');
      const workbook = new Excel.Workbook();
      const worksheet = workbook.addWorksheet('sheet1');
      const fileName = 'data.xlsx';
      workbook.created = new Date();
      workbook.modified = new Date();
      worksheet.columns = columns;
      const colArray = [];
      const tableHead = [];
      let level = 1;
      let maxLevel = 1;
      tableHead.push({
        title: '参赛序号',
        horizontal: 'center',
        colspan: 1,
        rowspan: 1,
        level: level,
      });
      const perIdIndex = tableField.indexOf('perId');
      const perIdLetter = excelDownloadForArea(perIdIndex);
      colArray.push({
        letter: perIdLetter,
        horizontal: 'center',
        dataType: 'number',
      });
      tableHead.push({
        title: '参赛姓名',
        horizontal: 'center',
        colspan: 1,
        rowspan: 1,
        level: level,
      });
      const perNameIndex = tableField.indexOf('perName');
      const perNameLetter = excelDownloadForArea(perNameIndex);
      colArray.push({
        letter: perNameLetter,
        horizontal: 'center',
        dataType: 'string',
      });
      tableHead.push({
        title: '年龄',
        horizontal: 'center',
        colspan: 1,
        rowspan: 1,
        level: level,
      });
      const ageIndex = tableField.indexOf('age');
      const ageLetter = excelDownloadForArea(ageIndex);
      colArray.push({
        letter: ageLetter,
        horizontal: 'center',
        dataType: 'string',
      });
      tableHead.push({
        title: '性别',
        horizontal: 'center',
        colspan: 1,
        rowspan: 1,
        level: level,
      });
      const sexIndex = tableField.indexOf('sex');
      const sexLetter = excelDownloadForArea(sexIndex);
      colArray.push({
        letter: sexLetter,
        horizontal: 'center',
        dataType: 'string',
      });
      tableHead.push({
        title: '参赛项目',
        horizontal: 'center',
        colspan: 1,
        rowspan: 1,
        level: level,
      });
      const entriesIndex = tableField.indexOf('entries');
      const entriesLetter = excelDownloadForArea(entriesIndex);
      colArray.push({
        letter: entriesLetter,
        horizontal: 'center',
        dataType: 'string',
      });
      tableHead.push({
        title: '得分',
        horizontal: 'center',
        colspan: 1,
        rowspan: 1,
        level: level,
      });
      const perScoreIndex = tableField.indexOf('perScore');
      const perScoreLetter = excelDownloadForArea(perScoreIndex);
      colArray.push({
        letter: perScoreLetter,
        horizontal: 'center',
        dataType: 'string',
      });
      --level;
      for (let i = 0; i < tableHead.length; i++) {
        if (tableHead[i].level > maxLevel) {
          maxLevel = tableHead[i].level;
        }
      }
      for (let i = 0; i < tableHead.length; i++) {
        if (tableHead[i].rowspan + tableHead[i].level - 1 > maxLevel) {
          tableHead[i].rowspan = maxLevel - tableHead[i].level + 1;
        }
      }
      const excelCell = [];
      const rows = [];
      for (let i = 0; i < tableField.length; i++) {
        for (let j = 0; j < maxLevel; j++) {
          const cell = { xAxis: i, yAxis: j, isEdit: false };
          excelCell.push(cell);
        }
      }
      for (let i = 0; i < maxLevel; i++) {
        let x = 0;
        const row = [];
        for (let j = 0; j < tableHead.length; j++) {
          const index = excelCell.findIndex(function (value, index, arr) {
            return value.isEdit === false && value.yAxis === i;
          });
          if (index !== -1) {
            x = excelCell.find(function (value, index, arr) {
              return value.isEdit === false && value.yAxis === i;
            }).xAxis;
          }
          if (tableHead[j].level - 1 === i) {
            const startArea = excelDownloadForArea(x) + (1 + i);
            const endArea = excelDownloadForArea(x + tableHead[j].colspan - 1) + (tableHead[j].rowspan + i);
            for (let k = x; k < x + tableHead[j].colspan; k++) {
              for (let m = i; m < tableHead[j].rowspan + i; m++) {
                excelCell.find(function (value, index, arr) {
                  return value.xAxis === k && value.yAxis === m;
                }).isEdit = true;
              }
            }
            while (row.length < x) {
              row.push('');
            }
            row[x] = tableHead[j].title;
            tableHead[j].merge = startArea + ':' + endArea;
          }
        }
        rows.push(row);
      }
      worksheet.insertRows(1, rows);
      for (let j = 0; j < tableHead.length; j++) {
        worksheet.mergeCells(tableHead[j].merge);
        worksheet.getCell(tableHead[j].merge.split(':')[0]).alignment = {
          vertical: 'middle',
          horizontal: tableHead[j].horizontal,
        };
      }
      for (let i = 0; i < colArray.length; i++) {
        for (let j = maxLevel + 1; j < 1000; j++) {
          worksheet.getCell(colArray[i].letter + j).alignment = { horizontal: colArray[i].horizontal };
          if (colArray[i].dataType === 'date') {
            worksheet.getCell(colArray[i].letter + j).dataValidation = {
              type: 'date',
              operator: 'between',
              showErrorMessage: true,
              allowBlank: true,
              formulae: [new Date(1900, 1, 1), new Date(2100, 1, 1)],
              showInputMessage: true,
              promptTitle: '日期',
              prompt: '请输入日期格式数据',
            };
          } else if (colArray[i].dataType === 'number') {
            worksheet.getCell(colArray[i].letter + j).dataValidation = {
              type: 'decimal',
              allowBlank: true,
              showErrorMessage: true,
              showInputMessage: true,
              promptTitle: '数字',
              prompt: '请输入数字格式数据',
            };
          }
        }
      }
      workbook.xlsx.writeBuffer().then(function (buffer) {
        saveAs(
          new Blob([buffer], {
            type: 'application/octet-stream',
          }),
          fileName
        );
      });
    },
    /**
     * 按钮的点击事件
     */
    button_26Click() {
      const self = this;
      // 可编辑表格新增
      const editTable_25TableRef = self.$refs.editTable_25TableRef.$refs.xTable;
      if (self.editTable_25OptCols.length > 0) {
        const editTable_25AddItem = {
          perId: '',
          perName: '',
          age: '',
          sex: '',
          entries: '',
          perScore: '',
        };
        const firstField = self.editTable_25OptCols[0].field;
        self.form_1FormData.hdPersonArr.push(editTable_25AddItem);
        const newRow = self.form_1FormData.hdPersonArr[self.form_1FormData.hdPersonArr.length - 1];
        editTable_25TableRef.setActiveCell(newRow, firstField);
      } else {
        self.form_1FormData.hdPersonArr.push({});
      }
    },
    /**
     * 按钮的点击事件
     */
    button_27Click() {
      const self = this;
      // 提交流程表单
      let flowEventData = {};
      flowEventData.formData = self.form_1FormData;
      const taskId = HussarRouter.query(self, 'taskId');
      const comment = '';
      const processDefinitionKey = HussarRouter.query(self, 'processDefinitionKey');
      self.hussar_0FlowData.taskId = taskId;
      self.hussar_0FlowData.comment = comment;
      self.hussar_0FlowData.processDefinitionKey = processDefinitionKey;
      flowEventData = { ...flowEventData, ...self.hussar_0FlowData };
      const loading = self.$loading({
        lock: true,
        text: 'Loading',
        spinner: 'el-icon-loading',
        background: 'rgba(0, 0, 0, 0.7)',
      });
      sjmx
        .flowFormSubmit(flowEventData)
        .then((res) => {
          if (res.code === 200 || res.code === 10000) {
            HussarRouter.showMsg(self, '办理成功', 'success');
            {
              // 'render_router'方法的块级作用域
              const pathObj = {
                path: `/toDoList`,
                query: {
                  refresh: true,
                },
              };
              HussarRouter.returnPage(self, pathObj, 2, true);
            }
          } else {
            HussarRouter.showMsg(self, res.msg, 'error');
          }
          loading.close();
        })
        .catch((error) => {
          HussarRouter.showMsg(self, error.msg || '提交流程表单请求异常', 'error');
          loading.close();
        });
    },
    /**
     * 按钮的点击事件
     */
    button_48Click() {
      const self = this;
      // 可编辑表格导入
      const importFile = document.createElement('input');
      importFile.style.display = 'none';
      importFile.type = 'file';
      importFile.value = '';
      importFile.accept = '.csv,.xlc,.xlm,.xls,.xlt, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel';
      importFile.onchange = function (event) {
        self.button_48importF(event, () => {
          // 此处生成了空方法体
        });
      };
      importFile.click();
    },
    button_48importF(event) {
      const self = this;
      const file = event.currentTarget.files[0];
      const rABS = false;
      const types = file.name.split('.')[1];
      const fileType = ['xlsx', 'xlc', 'xlm', 'xls', 'xlt', 'csv'].some((item) => item === types);
      if (!fileType) {
        HussarRouter.showMsg(self, '文件格式错误，请重新选择！', 'error');
        return;
      }
      const Excel = require('exceljs');
      const fileReader = new FileReader();
      fileReader.onload = function (ev) {
        const data = ev.target.result;
        const workbook = new Excel.Workbook();
        workbook.xlsx.load(data).then(function () {
          const values = ['参赛序号', '参赛姓名', '年龄', '性别', '参赛项目', '得分'];
          const prop = ['perId', 'perName', 'age', 'sex', 'entries', 'perScore'];
          function dateFormat(fmt, date) {
            let ret;
            const opt = {
              'Y+': date.getFullYear().toString(), // 年
              'M+': (date.getMonth() + 1).toString(), // 月
              'D+': date.getDate().toString(), // 日
              'H+': date.getHours().toString(), // 时
              'm+': date.getMinutes().toString(), // 分
              's+': date.getSeconds().toString(), // 秒
            };
            Object.keys(opt).forEach((key) => {
              ret = new RegExp('(' + key + ')').exec(fmt);
              if (ret) {
                fmt = fmt.replace(ret[1], ret[1].length === 1 ? opt[key] : opt[key].padStart(ret[1].length, '0'));
              }
            });
            return fmt;
          }
          function cellValueToDict(keys, row) {
            const data = {};
            const fieldDateFmt = [];
            row.eachCell(function (cell, colNumber) {
              let value = cell.value;
              if (cell.type === Excel.ValueType.Date) {
                value = new Date(value.valueOf() - 8 * 60 * 60 * 1000);
                if (fieldDateFmt.length !== 0) {
                  const findIndex = fieldDateFmt.findIndex(function (dictItem) {
                    return dictItem.field === prop[colNumber - 1];
                  });
                  const fmt = 'YYYY-MM-DD HH:mm:ss';
                  if (findIndex !== -1) {
                    const haveValue =
                      fieldDateFmt.find(function (dictItem) {
                        return dictItem.field === prop[colNumber - 1];
                      }) !== undefined;
                    if (haveValue) {
                      const fmt = fieldDateFmt.find(function (dictItem) {
                        return dictItem.field === prop[colNumber - 1];
                      }).fmt;
                    }
                  }
                  value = dateFormat(fmt, value);
                }
              }
              data[prop[colNumber - 1]] = value;
            });
            return data;
          }
          const dataArray = [];
          let keys = [];
          const worksheet = workbook.worksheets[0]; // 获取第一个worksheet
          debugger
          worksheet.eachRow(function (row, rowNumber) {
            if (rowNumber === 1) {
              keys = row.values;
            } else if (rowNumber > 1) {
              const rowDict = cellValueToDict(keys, row);
              dataArray.push(rowDict);
            }
          });
          const valuesCopy = values.slice(0);
          const keysCopy = keys
            .filter(function (el) {
              return el;
            })
            .slice(0);
          if (JSON.stringify(keysCopy.sort()) !== JSON.stringify(valuesCopy.sort())) {
            HussarRouter.showMsg(self, '导入模板错误，请重新选择！', 'error');
            return;
          }
          self.form_1FormData.hdPersonArr = self.form_1FormData.hdPersonArr.concat(dataArray);
          HussarRouter.showMsg(self, '导入成功', 'success');
        });
      };
      fileReader.readAsBinaryString(file);
    },
    /**
     * 按钮的点击事件
     */
    button_51Click() {
      const self = this;
      // 可编辑表格删除
      const selectData = self.$refs.editTable_25TableRef.$refs.xTable.getCheckboxRecords();
      const selectDataXid = [];
      const tableDataCopy = [];
      if (selectData.length > 0) {
        for (let i = 0; i < selectData.length; i++) {
          selectDataXid.push(selectData[i]._XID);
        }
        for (let i = 0; i < self.form_1FormData.hdPersonArr.length; i++) {
          let isExist = false;
          for (let j = 0; j < selectDataXid.length; j++) {
            if (selectDataXid[j] === self.form_1FormData.hdPersonArr[i]._XID) {
              isExist = true;
            }
            if (j === selectDataXid.length - 1 && isExist === false) {
              tableDataCopy.push(self.form_1FormData.hdPersonArr[i]);
            }
          }
        }
        self.form_1FormData.hdPersonArr = JSON.parse(JSON.stringify(tableDataCopy));
      } else {
        HussarRouter.showMsg(self, '请至少选择一条数据', 'warning');
      }
    },
    changehussar_0ParticipantDialogVisible() {
      const self = this;
      self.hussar_0ParticipantDialogVisible = true;
    },
    /**
     * 可编辑表格的选中单行方法
     */
    editTable_25ActiveRowMethod() {
      const self = this;
      return !self.editTable_25Disabled;
    },
    /**
     * 可编辑表格的单元格样式方法
     */
    editTable_25CellStyle(row) {
      const self = this;
      if (row.column.property === 'perId') {
        return 'background-color: null;background-image: linear-gradient(null, null), linear-gradient(null, null);color: null;font-family: -apple-system, "Noto Sans", "Helvetica Neue", Helvetica, "Nimbus Sans L", Arial, "Liberation Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Source Han Sans CN", "Microsoft YaHei","微软雅黑", "Wenquanyi Micro Hei", "WenQuanYi Zen Hei", "ST Heiti", SimHei, "WenQuanYi Zen Hei Sharp", sans-serif;';
      }
      if (row.column.property === 'perName') {
        return 'background-color: null;background-image: linear-gradient(null, null), linear-gradient(null, null);color: null;font-family: -apple-system, "Noto Sans", "Helvetica Neue", Helvetica, "Nimbus Sans L", Arial, "Liberation Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Source Han Sans CN", "Microsoft YaHei","微软雅黑", "Wenquanyi Micro Hei", "WenQuanYi Zen Hei", "ST Heiti", SimHei, "WenQuanYi Zen Hei Sharp", sans-serif;';
      }
      if (row.column.property === 'age') {
        return 'background-color: null;background-image: linear-gradient(null, null), linear-gradient(null, null);color: null;font-family: -apple-system, "Noto Sans", "Helvetica Neue", Helvetica, "Nimbus Sans L", Arial, "Liberation Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Source Han Sans CN", "Microsoft YaHei","微软雅黑", "Wenquanyi Micro Hei", "WenQuanYi Zen Hei", "ST Heiti", SimHei, "WenQuanYi Zen Hei Sharp", sans-serif;';
      }
      if (row.column.property === 'sex') {
        return 'background-color: null;background-image: linear-gradient(null, null), linear-gradient(null, null);color: null;font-family: -apple-system, "Noto Sans", "Helvetica Neue", Helvetica, "Nimbus Sans L", Arial, "Liberation Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Source Han Sans CN", "Microsoft YaHei","微软雅黑", "Wenquanyi Micro Hei", "WenQuanYi Zen Hei", "ST Heiti", SimHei, "WenQuanYi Zen Hei Sharp", sans-serif;';
      }
      if (row.column.property === 'entries') {
        return 'background-color: null;background-image: linear-gradient(null, null), linear-gradient(null, null);color: null;font-family: -apple-system, "Noto Sans", "Helvetica Neue", Helvetica, "Nimbus Sans L", Arial, "Liberation Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Source Han Sans CN", "Microsoft YaHei","微软雅黑", "Wenquanyi Micro Hei", "WenQuanYi Zen Hei", "ST Heiti", SimHei, "WenQuanYi Zen Hei Sharp", sans-serif;';
      }
      if (row.column.property === 'perScore') {
        return 'background-color: null;background-image: linear-gradient(null, null), linear-gradient(null, null);color: null;font-family: -apple-system, "Noto Sans", "Helvetica Neue", Helvetica, "Nimbus Sans L", Arial, "Liberation Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Source Han Sans CN", "Microsoft YaHei","微软雅黑", "Wenquanyi Micro Hei", "WenQuanYi Zen Hei", "ST Heiti", SimHei, "WenQuanYi Zen Hei Sharp", sans-serif;';
      }
    },
    editTable_25ExcelDownloadForArea(colIndex) {
      const self = this;
      const ordA = 'A'.charCodeAt(0);
      const ordZ = 'Z'.charCodeAt(0);
      const len = ordZ - ordA + 1;
      let str = '';
      while (colIndex >= 0) {
        str = String.fromCharCode((colIndex % len) + ordA) + str;
        colIndex = Math.floor(colIndex / len) - 1;
      }
      return str;
    },
    editTable_25ExcelExportForArea(colIndex) {
      const self = this;
      const ordA = 'A'.charCodeAt(0);
      const ordZ = 'Z'.charCodeAt(0);
      const len = ordZ - ordA + 1;
      let str = '';
      while (colIndex >= 0) {
        str = String.fromCharCode((colIndex % len) + ordA) + str;
        colIndex = Math.floor(colIndex / len) - 1;
      }
      return str;
    },
    /**
     * 可编辑表格的全部选中方法
     */
    editTable_25SelectAll({ selection }) {
      const self = this;
      self.editTable_25TableDataChecked = [];
      selection.forEach((item) => {
        self.editTable_25TableDataChecked.push(item);
      });
    },
    /**
     * 可编辑表格的单行选中方法
     */
    editTable_25SelectRow({ selection }) {
      const self = this;
      self.editTable_25TableDataChecked = [];
      selection.forEach((item) => {
        self.editTable_25TableDataChecked.push(item);
      });
    },
    /**
     * 可编辑表格的禁用复选框方法
     */
    editTable_25Selectable() {
      const self = this;
      return !self.editTable_25Disabled;
    },
    /**
     * 可编辑表格的表格初始化方法
     */
    editTable_25TableInit() {
      const self = this;
    },
    /**
     * 可编辑表格的表格加载方法
     */
    editTable_25TableLoad(callback) {
      const self = this;
      // 可编辑表格未绑定数据模型或数据模型没有主键，该动作未成功生成
      if (callback && typeof callback === 'function') {
        callback();
      }
    },
    editTable_25ValidEvent() {
      const self = this;
    },
    /**
     * 表单加载
     */
    form_1FormLoad(callback, formId) {
      const self = this;
      // 路由id
      const routerId = formId || HussarRouter.query(self, 'businessId');
      const data = {
        id: routerId,
      };
      if (self.form_1FormDataOLD !== undefined) {
        self.form_1FormDataOLD = _.cloneDeep(self.form_1FormData);
      }
      if (routerId && routerId !== '') {
        let convert = [];
        sjmx
          .formQuery(data)
          .then(async (res) => {
            if ((res.code === 200 || res.code === 10000) && res.data) {
              convert = res.data;
              self.form_1FormData = convert;
              if (self.form_1FormDataOLD !== undefined) {
                self.form_1FormDataOLD = _.cloneDeep(self.form_1FormData);
              }
              if (callback && typeof callback === 'function') {
                callback();
              }
            } else {
              HussarRouter.showMsg(self, '表单数据请求失败', 'error');
            }
          })
          .catch(function () {
            HussarRouter.showMsg(self, '表单数据请求异常', 'error');
          });
      } else {
        if (callback && typeof callback === 'function') {
          callback();
        }
      }
    },
    /**
     * 页面激活事件
     */
    hussar_0Activated() {
      const self = this;
      // 表单查询
      self.form_1FormLoad(() => {
        if (_.hasIn(self, 'nextNode_45OptionLoad')) {
          self.$nextTick(() => {
            self.nextNode_45OptionLoad();
          });
        }
        // 此处生成了空方法体
      });
    },
    hussar_0ComfirmParticipant() {
      const self = this;
      self.hussar_0FlowData.participantSelect = arguments[0].participants;
      self.candidate_46Data = arguments[0].participantNames;
      self.hussar_0SelectionBackup = arguments[0].tableSelects;
    },
    /**
     * 页面加载完成事件
     */
    hussar_0Onload() {
      const self = this;
      // 表单查询
      self.form_1FormLoad(() => {
        if (_.hasIn(self, 'nextNode_45OptionLoad')) {
          self.$nextTick(() => {
            self.nextNode_45OptionLoad();
          });
        }
        // 此处生成了空方法体
      });
    },
    /**
     * 页面状态方法
     */
    hussar_0PageAllStateMe() {
      const self = this;
      if (self.hussar_0PageCommonStateMe) {
        self.hussar_0PageCommonStateMe();
      }
      if (self.hussar_0BpmStateHandler) {
        self.hussar_0BpmStateHandler();
      }
    },
    /**
     * 工作流表单权限方法
     */
    hussar_0PageRenderAllState(callBack) {
      const self = this;
      const failButContinue = true;
      flowAuth
        .getOnlineConfig()
        .then((res) => {
          if (res && res.msg === 'true') {
            // 权限查询条件
            if (self.$options.name && HussarRouter.query(self, 'processDefinitionKey')) {
              const condition = {
                formName: self.$options.name,
                taskId: HussarRouter.query(self, 'taskId'),
                processKey: HussarRouter.query(self, 'processDefinitionKey'),
                formType: HussarRouter.query(self, 'doneListIdentification'),
                taskDefinitionKey: HussarRouter.query(self, 'taskDefinitionKey'),
              };
              if (HussarRouter.query(self, 'doneListIdentification') === 3) {
                // 此处生成了空方法体
              }
              // 获取该工作流相应的表单权限配置
              if (flowAuth.getAllAuthConfigs) {
                flowAuth.getAllAuthConfigs(condition).then((res) => {
                  if (res && res.data && res.data.length > 0) {
                    // 循环权限配置，查到符合当前流程节点的权限
                    res.data.forEach((auth) => {
                      if (auth.taskDefinitionKey === HussarRouter.query(self, 'taskDefinitionKey')) {
                        // 获取禁用组件
                        if (auth.insDisabled) {
                          const insDisabled = JSON.parse(auth.insDisabled);
                          if (insDisabled && insDisabled.length > 0) {
                            insDisabled.forEach((ins) => {
                              const curIns = `${ins}Disabled`;
                              self[curIns] = true;
                            });
                          }
                        }
                        // 获取隐藏组件
                        if (auth.insHidden) {
                          const insHidden = JSON.parse(auth.insHidden);
                          if (insHidden && insHidden.length > 0) {
                            insHidden.forEach((ins) => {
                              const curIns = `${ins}Hidden`;
                              self[curIns] = true;
                            });
                          }
                        }
                        // 获取无需校验组件
                        if (auth.insNotCheck) {
                          const insNotCheck = JSON.parse(auth.insNotCheck);
                          if (insNotCheck && insNotCheck.length > 0) {
                            const formCheckParam = JSON.parse(auth.formCheckParam);
                            insNotCheck.forEach((ins) => {
                              if (formCheckParam[ins] && formCheckParam[ins].formKey) {
                                const formCheckData = `${formCheckParam[ins].formKey}FormCheck`;
                                if (formCheckParam[ins].field && self[formCheckData]) {
                                  self[formCheckData][formCheckParam[ins].field] = false;
                                }
                              }
                            });
                          }
                        }
                        // 获取隐藏插槽
                        if (auth.slotHidden) {
                          const colSlotHidden = JSON.parse(auth.slotHidden);
                          if (colSlotHidden && Object.keys(colSlotHidden).length > 0) {
                            const slotHiddenParam = `${Object.keys(colSlotHidden)}SlotHidden`;
                            self[slotHiddenParam] = Object.values(colSlotHidden);
                          }
                        }
                      }
                    });
                  }
                  self.alreadyLoad = true;
                });
              }
            } else {
              // 当前页面不是工作流表单
              self.alreadyLoad = true;
            }
          } else {
            self.alreadyLoad = true;
            if (callBack && typeof callBack === 'function') {
              callBack();
            }
          }
        })
        .catch(() => {
          self.$message.error('数据请求异常');
        });
    },
    nextNode_45Change() {
      const self = this;
      self.hussar_0FlowData.participantSelect = '';
      self.hussar_0FlowData.flowSelect = self.nextNode_45Data;
    },
    /**
     * 下一节点的获得焦点
     */
    nextNode_45Focus() {
      const self = this;
      if (self.nextNode_45Disabled && self.nextNode_45Disabled === true) {
        // eslint-disable-next-line
        return;
      }
      // 重新加载选项
      self.nextNode_45OptionLoad(() => {
        // 此处生成了空方法体
      });
    },
    nextNode_45OptionLoad(callback) {
      const self = this;
      if (self.nextNode_45Hidden === undefined || !self.nextNode_45Hidden) {
        const taskId = HussarRouter.query(self, 'taskId');
        const lineCondition = JSON.stringify(self.form_1FormData).toString();
        const processDefinitionKey = HussarRouter.query(self, 'processDefinitionKey');
        function queryNextNode(data) {
          return hussarRequest.postJson(`${BPMPREFIX.name}/publicProcess/queryNextUserTaskWithLineCondition`, data);
        }
        const data = {
          processKey: processDefinitionKey,
          lineCondition,
          isGetWithGroup: false,
          taskId,
        };
        if (processDefinitionKey || taskId) {
          queryNextNode(data)
            .then((res) => {
              if (res.code === '1') {
                const result = res.result;
                self.nextNode_45Options = [];
                result.forEach((val) => {
                  self.nextNode_45Options.push({
                    value: val.id,
                    name: val.name,
                  });
                });
                if (result instanceof Array && result.length > 0) {
                  self.$nextTick(() => {
                    self.nextNode_45Data = result[0].id;
                    if (self.nextNode_45Change) {
                      self.nextNode_45Change();
                    }
                  });
                }
                if (callback && typeof callback === 'function') {
                  callback();
                }
              } else {
                if (!HussarRouter.query(self, 'doneListIdentification')) {
                }
              }
            })
            .catch(function () {
              HussarRouter.showMsg(self, '下一节点数据请求异常', 'error');
            });
        } else {
          if (callback && typeof callback === 'function') {
            callback();
          }
        }
      } else {
        if (callback && typeof callback === 'function') {
          callback();
        }
      }
    },
    selectStyle(key, insId) {
      const self = this;
      formatSelectStyle(key, self, insId);
    },
    /* @begin methods # 自定义方法 */
    /* @end methods */
  },
  created() {
    const self = this;
    // @begin created:before # 自定义创建钩子头部
    // @end created:before
    self.hussar_0PageRenderAllState();
    // @begin created:after # 自定义创建钩子尾部
    // @end created:after
  },
  mounted() {
    const self = this;
    // @begin mounted:before # 自定义挂载钩子头部
    // @end mounted:before
    self.hussar_0Onload();
    if (self.$compilationMetadata.strategy) {
      window.curPageSelfFresh = function () {
        if (self.hussar_0Activated) {
          self.hussar_0Activated && self.hussar_0Activated();
        }
      };
    }
    // @begin mounted:after # 自定义挂载钩子尾部
    // @end mounted:after
  },
  filters: {
    /**
     * 标签的过滤器
     */
    label_34format(value, that) {
      if (value === undefined || value === '') {
        return '下一节点：';
      }
      return value;
    },
    /**
     * 标签的过滤器
     */
    label_47format(value, that) {
      if (value === undefined || value === '') {
        return '选择：';
      }
      return value;
    },
    /**
     * 标签的过滤器
     */
    label_50format(value, that) {
      if (value === undefined || value === '') {
        return '评委：';
      }
      return value;
    },
  },
  destroyed() {
    const self = this;
    // @begin destroyed:before # 自定义销毁钩子头部
    // @end destroyed:before
    // @begin destroyed:after # 自定义销毁钩子尾部
    // @end destroyed:after
  },
  activated() {
    const self = this;
    // @begin activated:before # 自定义组件激活钩子头部
    // @end activated:before
    if (!self.isFirstCreate && HussarRouter.query(self, 'refresh')) {
      self.hussar_0Activated();
    }
    if (!self.isFirstCreate && HussarRouter.query(self, 'systemParams') && JSON.parse(HussarRouter.query(self, 'systemParams')).refresh === 1) {
      self.hussar_0Activated();
    }
    self.isFirstCreate = false;
    // @begin activated:after # 自定义组件激活钩子尾部
    // @end activated:after
  },
  beforeRouteUpdate(to, from, next) {
    const self = this;
    next();
    if (to.query && to.query.systemParams && JSON.parse(to.query.systemParams).refresh === 1) {
      if (self.hussar_0Activated) {
        self.hussar_0Activated && self.hussar_0Activated();
      }
    }
  },
  deactivated() {
    const self = this;
    // @begin deactivated:before # 自定义组件失活钩子头部
    // @end deactivated:before
    self.hussar_0firstCreated = false;
    // @begin deactivated:after # 自定义组件失活钩子尾部
    // @end deactivated:after
  },
  /* @begin options # 自定义页面组件创建选项 */
  /* @end options */
};
</script>
<!-- @begin style:before # 自定义 style 代码块（较低优先级） -->
<!-- @end style:before -->
<style scoped>
/*公共，用于固定*/
.lcdp_axe_main {
  height: 100%;
  overflow: auto;
  transform: scale(1);
}
/*公共，用于设置文字提示的最大宽度*/
.el-tooltip__popper {
  max-width: 500px;
}
.PfxtLrxx.hussar_0 {
  position: relative;
  top: 0;
  left: 0;
  display: block;
  width: calc(100% - 0px - 0px);
  height: 100%;
}
.lcdp_axe.PfxtLrxx .button_6 {
  position: absolute;
  top: 125px;
  left: 200px;
  display: block;
  width: 76px;
}
.lcdp_axe.PfxtLrxx .button_6 {
  margin-left: 0;
}
.lcdp_axe.PfxtLrxx .button_6 /deep/ span i {
  font-weight: normal;
}
.lcdp_axe.PfxtLrxx .button_26 {
  position: absolute;
  top: 125px;
  left: 20px;
  display: block;
  width: 80px;
}
.lcdp_axe.PfxtLrxx .button_26 {
  margin-left: 0;
}
.lcdp_axe.PfxtLrxx .button_26 /deep/ span i {
  font-weight: normal;
}
.lcdp_axe.PfxtLrxx .button_27 {
  position: absolute;
  top: 125px;
  left: 120px;
  display: block;
}
.lcdp_axe.PfxtLrxx .button_27 {
  margin-left: 0;
}
.lcdp_axe.PfxtLrxx .button_27 /deep/ span i {
  font-weight: normal;
}
.lcdp_axe.PfxtLrxx .button_48 {
  position: absolute;
  top: 125px;
  left: 310px;
  display: block;
}
.lcdp_axe.PfxtLrxx .button_48 {
  margin-left: 0;
}
.lcdp_axe.PfxtLrxx .button_48 /deep/ span i {
  font-weight: normal;
}
.lcdp_axe.PfxtLrxx .button_51 {
  position: absolute;
  top: 125px;
  left: 395px;
  display: block;
}
.lcdp_axe.PfxtLrxx .button_51 {
  margin-left: 0;
}
.lcdp_axe.PfxtLrxx .button_51 /deep/ span i {
  font-weight: normal;
}
.lcdp_axe.PfxtLrxx .candidate_46 {
  position: absolute;
  top: 545px;
  left: 125px;
  display: block;
}
.lcdp_axe.PfxtLrxx .editTable_25 {
  position: absolute;
  top: 185px;
  right: 21px;
  left: 20px;
  display: block;
  width: calc(100% - 20px - 21px);
  height: 290px;
}
.lcdp_axe.PfxtLrxx .editTable_25 /deep/ thead .vxe-header--row .vxe-header--gutter {
}
.lcdp_axe.PfxtLrxx .editTable_25 /deep/ ::-webkit-scrollbar {
  display: none;
}
.lcdp_axe.PfxtLrxx .editTable_25 /deep/ .vxe-table--body-wrapper::-webkit-scrollbar {
  display: block;
  width: 16px;
  height: 16px;
}
.lcdp_axe.PfxtLrxx .editTable_25 /deep/ .vxe-table--empty-placeholder {
  color: #909399;
}
.lcdp_axe.PfxtLrxx .editTable_25 /deep/ .vxe-table div.vxe-table--border-line {
  z-index: 0;
}
.lcdp_axe.PfxtLrxx .editTable_25 /deep/ .vxe-table .vxe-table--header-wrapper .vxe-table--header-border-line {
  border-bottom: 0px;
}
.lcdp_axe.PfxtLrxx .editTable_25 /deep/ .vxe-table .vxe-body--column.col--ellipsis > .vxe-cell {
  max-height: none;
}
.lcdp_axe.PfxtLrxx .editTable_25 /deep/ .vxe-loading {
  position: fixed;
}
.lcdp_axe.PfxtLrxx .editTable_25 /deep/ .vxe-body--row .vxe-cell .vxe-select {
  line-height: normal;
}
.lcdp_axe.PfxtLrxx .editTable_25 /deep/ .page .el-pagination .el-select .el-input {
  width: auto;
}
.lcdp_axe.PfxtLrxx .editTable_25 /deep/ .page .el-pagination .el-select .el-input .el-input__inner {
  max-width: 90px;
}
.lcdp_axe.PfxtLrxx .editTable_25 /deep/ .page .el-pagination .el-pagination__jump .el-input .el-input__inner {
  vertical-align: middle;
}
.lcdp_axe.PfxtLrxx .form_1 {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}
.lcdp_axe.PfxtLrxx .h1_2 {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  width: 111px;
  height: 35px;
}
.lcdp_axe.PfxtLrxx .h1_2 /deep/ .leftIconClass {
  padding: 0px 7px 0px 0px;
}
.lcdp_axe.PfxtLrxx .h1_2 /deep/ .leftIconClass {
  color: var(--c-titleColor);
}
.lcdp_axe.PfxtLrxx .h1_33 {
  position: absolute;
  top: 500px;
  left: 20px;
  display: inline-flex;
  width: 111px;
  height: 35px;
}
.lcdp_axe.PfxtLrxx .h1_33 /deep/ .leftIconClass {
  padding: 0px 7px 0px 0px;
}
.lcdp_axe.PfxtLrxx .h1_33 /deep/ .leftIconClass {
  color: var(--c-titleColor);
}
.lcdp_axe.PfxtLrxx .h1_39 {
  position: absolute;
  top: 603px;
  left: 20px;
  display: inline-flex;
  width: 111px;
  height: 35px;
}
.lcdp_axe.PfxtLrxx .h1_39 /deep/ .leftIconClass {
  padding: 0px 7px 0px 0px;
}
.lcdp_axe.PfxtLrxx .h1_39 /deep/ .leftIconClass {
  color: var(--c-titleColor);
}
.lcdp_axe.PfxtLrxx .input_49 {
  position: absolute;
  top: 663px;
  left: 125px;
  display: block;
}
.lcdp_axe.PfxtLrxx .input_49 /deep/ .el-input__suffix {
  align-items: center;
  justify-content: flex-end;
  width: 0px;
}
.lcdp_axe.PfxtLrxx .input_49 /deep/ .el-input__suffix .el-input__suffix-inner {
  flex-direction: row-reverse;
}
.lcdp_axe.PfxtLrxx .input_49 /deep/ .el-input__inner::-ms-reveal {
  display: none;
}
.lcdp_axe.PfxtLrxx .input_49 /deep/ .el-input__clear {
  position: absolute;
}
.lcdp_axe.PfxtLrxx .input_49 /deep/ .el-input__clear {
  left: -15px;
}
.lcdp_axe.PfxtLrxx .input_49 /deep/ .el-input__clear {
  display: flex;
}
.lcdp_axe.PfxtLrxx .input_49 /deep/ .el-input__clear {
  align-items: center;
}
.lcdp_axe.PfxtLrxx .label_34 {
  position: absolute;
  top: 75px;
  left: 20px;
  display: inline-flex;
  width: 80px;
}
.lcdp_axe.PfxtLrxx .label_34 /deep/ .required {
  color: red;
}
.lcdp_axe.PfxtLrxx .label_34 /deep/ .isShear {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.lcdp_axe.PfxtLrxx .label_47 {
  position: absolute;
  top: 545px;
  left: 20px;
  display: inline-flex;
  width: 80px;
}
.lcdp_axe.PfxtLrxx .label_47 /deep/ .required {
  color: red;
}
.lcdp_axe.PfxtLrxx .label_47 /deep/ .isShear {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.lcdp_axe.PfxtLrxx .label_50 {
  position: absolute;
  top: 664px;
  left: 20px;
  display: inline-flex;
  width: 80px;
}
.lcdp_axe.PfxtLrxx .label_50 /deep/ .required {
  color: red;
}
.lcdp_axe.PfxtLrxx .label_50 /deep/ .isShear {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.lcdp_axe.PfxtLrxx .nextNode_45 {
  position: absolute;
  top: 75px;
  left: 120px;
  display: block;
}
.lcdp_axe.PfxtLrxx .nextNode_45 /deep/ .el-input input {
  height: 100% !important;
}
.jxd_hyperlinks_span {
  color: rgb(58, 142, 230);
  cursor: pointer;
}
</style>
<style></style>
<!-- @begin style:after # 自定义 style 代码块（较高优先级） -->
<!-- @end style:after -->
